#region Usings

using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;

#endregion

namespace KanbanBoard.Client.ViewModel.Common {
    public static class ObservableCollectionTranslator {
        public static ObservableCollection<T> ToObservableCollection<T>(this IEnumerable<T> enumerable) {
            var result = new ObservableCollection<T>();
            enumerable.ToList().ForEach(result.Add);
            return result;
        }
    }
}